package com.platform.coreentity.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * describe:系统角色表
 *
 * @author rainly
 * @date 2019/07/23
 * @time 16:35
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Entity
@Table(name = "sys_role", schema = "platform")
public class SysRoleEntity {
    @Id
    @Column(name = "roleid", nullable = false, length = 50)
    private String roleid;

    /**
     * 角色名称
     */
    @Column(name = "rolename", nullable = false, length = 50,columnDefinition = "varchar(50) COMMENT '角色名称'")
    private String rolename;
}
